package com.cnunicom.modules.tra.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 入住记录表
 *
 * @author dzygod
 * @email dingziyuan0@gmail.com
 * @date 2019-11-27 16:44:19
 */
@Data
@TableName("tra_history")
public class HistoryEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "住房管理")
	@TableId
	private Integer id;

	@ApiModelProperty(value = "会员id")
	@NotNull(message = "会员不能为空")
	private Integer mebId;

	@ApiModelProperty(value = "房型id")
	private Integer roomtypeId;

	@ApiModelProperty(value = "入住时间")
	@NotBlank(message = "入住时间不能为空")
	private String checkinTime;

	@ApiModelProperty(value = "退房时间")
	@NotBlank(message = "退房时间不能为空")
	private String checkoutTime;

	@ApiModelProperty(value = "逻辑删除")
	@TableLogic
	private Integer isDel;

	@ApiModelProperty(value = "创建时间")
	private String createTime;

	private String def0;

	private String def1;

	private String def2;

	@TableField(exist = false)
	@NotNull(message = "房型不能为空")
	private List<Integer> roomTypeIds;

	@TableField(exist = false)
	private BigDecimal price;
}
